// import VueRouter from 'vue-router'
import * as VueRouter from 'vue-router'

import Home from '../views/home.vue'
import Detail from '../views/detail.vue'

// const Home=()=>import("views/home")
// const Detail=()=>import("views/detail")


  const routes = [
    {
      path:'/',
      // redirect:'/detail'
      component:Home
    },
    {
      path:'/home',
      component:Home
    },
    {
      path:'/detail',
      component:Detail
    }
]

const router = VueRouter.createRouter({
  history: VueRouter.createWebHashHistory(),
  routes
})

export default router
